package cs236703.winter2013.hw4.provided;

import cs236703.winter2013.hw4.solution.JBefore;
import cs236703.winter2013.hw4.solution.JCore;
import cs236703.winter2013.hw4.solution.JTest;
import cs236703.winter2013.hw4.solution.JTestClass;

public @JTestClass class ExampleClass {
	
	private int field = 0;
	
	public @JBefore({"test1"}) void beforeFirstTest() 
	{
		this.field = 123;
	}
	
	public @JTest void test1() throws JAssertionError
	{
		JCore.assertEquals(123, this.field);
	}
	
	public @JTest void test2() throws JAssertionError
	{
		JCore.assertEquals(321, this.field);
	}

}
